<% if !current_user.nil? && current_user == @user -%>
<div class="tab">
    <h3>新的talks</h3>
</div>
<div class="clear">
    <%= error_message_on "talk", "content" %>
    <% form_tag talks_path(current_user.login) do -%>
            <textarea cols="28" rows="4" id="talk_content" name="talk[content]" onkeyup="checkIngType('talk_content', 'talk_status');"></textarea>
        <%= submit_tag "提交" %><span id="talk_status" style="margin:0px 0px 0px 50px">内容(剩余140字)</span>
    <% end -%>  
</div>
<% end -%>